package com.niit.galgame.service;

import com.niit.entity.Game;
import com.niit.entity.Vedio;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.util.List;

public interface GameService {
    public int insertGame(Game game);

    public void upLoadFile(InputStream inputStream, String fileName, int gid);

    public InputStream getFileStream(String fileName, int gid) throws Exception;

    public void deleteGame(int gid) throws Exception;

    public int insertVedio(Vedio vedio);

    public Game queryById(int gid);

    public List<Game> findAll();

}
